Saturday, June 25, 2016

Telling your computer what to do

Interacting with your computer

Interacting with your computer

What types of information does your computer understand?

  • numeric
    • integers, e.g. 1, 2, 3
    • doubles, e.g. 1.25, 3.78
    • complex numbers, e.g. 3 + 2i
  • character or string
    • e.g. "Research", "Platforms"
  • logical
    • e.g. TRUE and FALSE

How can we group information?

  • vectors / tuples
  • matrices / data.frames / arrays
  • lists
  • dictionaries

vectors / tuples

matrices / data.frames / arrays

lists

dictionaries

How to add flexibility to the conversation

If statements

How to add flexibility to the conversation

For loops

How to add flexibility to the conversation

Functions